package com.hdi.extendsmodifer;

public class Fu {

    private void privateMethod(){
        System.out.println("==private==");
    }

    void method(){
        System.out.println("==缺省的==");
    }

    protected void protectedMethod(){
        System.out.println("==protected==");
    }

    public void publicMethod(){
        System.out.println("==public==");
    }

    public void test(){
        privateMethod();
        method();
        protectedMethod();
        publicMethod();
    }
}
